#include "ScnsIwdg.c.h"

#if defined(SCNS_IWDG_ENABLE)&&SCNS_IWDG_ENABLE==1

ScnsStatus scnsBspIwdgInit(void)
{
    wdog_config_t config;
    WDOG_GetDefaultConfig(&config);
    config.timeoutValue = 32;
    config.interruptTimeValue = 10;
    WDOG_Init(WDOG1,&config);
    WDOG_Enable(WDOG1);
    return SCNS_STATUS_OK;
}
ScnsStatus scnsBspIwdgPostInit(void)
{
    return SCNS_STATUS_OK;
}
void scnsBspIwdgFeed(void)
{
	WDOG_Refresh(WDOG1);
}

#endif